{% extends "base_main.html" %}

{% load humanize %}

{% block page_title %} {{ person.nickname }}{% endblock %}
{% block meta_title %}WhatYou - Tell the world what you are doing, Twitter style!{% endblock %}
{% block meta_description %}Publish multiple statuses, so your friends know what you are up to{% endblock %}
{% block meta_keywords %}what, you, whatyou, publish, status, twitter, clone, alternative, replacement, google, appengine, gae{% endblock %}

{% block menu_custom %}
	<li class="current_page_item"><a href="#">Person</a></li>
{% endblock %}

{% block menu_01 %}
	<li>
		<h2>Information</h2>
		<ul>
			<li>Posted {{ another_person.update_count|apnumber }} updates</li>
			<li>Been a member for {{ another_person.create_date|timesince }}<br/>(since {{ another_person.create_date|date:"d/m/Y H:i" }})</li>
		</ul>
	</li>
	<li>
		<h2>RSS Feeds</h2>
		<ul>
			<li>
				<a href="/rss/updates/for/{{ another_person.key }}/">Their Updates</a>
			</li>
		</ul>
	</li>
{% endblock %}

{% block content_main %}

	<h1>Profile for {{ another_person.friendly_name }}</h1>

	<h2>Their Updates</h2>

	<table class="updates" cellpadding="0" cellspacing="0">
		{% for update in updates|dictsortreversed:"start_time" %}
			<tr class="{% cycle "alternate" "" %}">
				<td class="update_body">
					{% ifequal user update.owner.user %}I am{% else %}{{ update.owner.friendly_name }} is {% endifequal %}
					{{ update.verb.name }}
					{{ update.body_tpc }}
					{% if update.is_temporary %}
						<i>(for {{ update.finish_time|timeuntil }})</i>
					{% endif %}
				</td>
				<td class="update_action">
					<a href="/people/that_are/{{ update.key }}" title="View other users also doing this">
						<img src="/static/images/icons/friends.png" border="0" alt="View Other Users" />
					</a>
				</td>
			</tr>
		{% endfor %}
	</table>

{% endblock %}